package me.sealer.transformer.beans;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 功能描述： $ Student
 *
 * @author sealer
 * @email 1178884049@qq.com
 * @date 2019年03月17日 14时07分39秒
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JacksonXmlRootElement(localName = "_Student")
public class Student<T> {
    @JacksonXmlProperty(localName = "_Name")
    private String name;

    @JacksonXmlProperty(localName = "_Sex")
    private char sex;

    @JacksonXmlProperty(localName = "_Birthday")
    private Date birthday;

    @JacksonXmlElementWrapper(localName = "_Habits")
    @JacksonXmlProperty(localName = "_Habit")
    private List<Habit> habits;

    @JacksonXmlProperty(localName = "_Teachers")
    private Map<String, T> map;
}
